import Vue from 'vue'
import App from './App'
import store from "@/store/index.js"
import i18n from "@/utils/i18n"

Vue.config.productionTip = true
App.mpType = 'app'

Vue.prototype.$store = store

// 引入wechat
import wechat from '@/utils/wechat.js'
Vue.prototype.$wechat = wechat;

import api from "@/api/index.js"
Vue.prototype.$api = api

import util from "@/utils/util.js"
Vue.prototype.$util = util


const app = new Vue({
	store,
	i18n,
    ...App
})

// 引入全局uView
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

// 引入uView对小程序分享的mixin封装
const mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js')
Vue.mixin(mpShare)


app.$mount() // 挂载Vue实例